package org.heydr.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Site implements Serializable{
	/* TODO */
	private static final long serialVersionUID = -8471993344387885444L;

	private long id;

	private String entryUrl;

	private String site;

	private String name;
	
	private int crawlStatus = CRAWL_STATUS_NORMAL;

	private int parseStatus = PARSE_STATUS_NORMAL;

	private long sleepTime = DEFAULT_SLEEP_TIME;

	private Date createTime;

	private Date updateTime;

	private HttpSnatchParam httpSnatchParam;
	
	public static final int DEFAULT_SLEEP_TIME = 5000;

	public static final int CRAWL_STATUS_STOP = 0;

	public static final int CRAWL_STATUS_NORMAL = 1;

	public static final int CRAWL_STATUS_UPDATE = 2;

	public static final int PARSE_STATUS_STOP = 0;

	public static final int PARSE_STATUS_NORMAL = 1;

	public static final int PARSE_STATUS_INFO = 2;
	
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getEntryUrl() {
		return entryUrl;
	}

	public void setEntryUrl(String entryUrl) {
		this.entryUrl = entryUrl;
	}

	public String getSite() {
		return site;
	}

	public void setSite(String site) {
		this.site = site;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getCrawlStatus() {
		return crawlStatus;
	}

	public void setCrawlStatus(int crawlStatus) {
		this.crawlStatus = crawlStatus;
	}

	public int getParseStatus() {
		return parseStatus;
	}

	public void setParseStatus(int parseStatus) {
		this.parseStatus = parseStatus;
	}

	public long getSleepTime() {
		return sleepTime;
	}

	public void setSleepTime(long sleepTime) {
		this.sleepTime = sleepTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public HttpSnatchParam getHttpSnatchParam() {
		return httpSnatchParam;
	}

	public void setHttpSnatchParam(HttpSnatchParam httpSnatchParam) {
		this.httpSnatchParam = httpSnatchParam;
	}

}
